package com.fit.utils.ee;

import javax.servlet.http.HttpServletRequest;

/**
 * request工具
 * @author hcl
 *
 */
public class RequestUtil {
	
	/**
	 * 判断是否是ajax请求
	 * @param request
	 * @return
	 */
	public static boolean isAjax(HttpServletRequest request){
		String str = request.getHeader("X-Requested-With");
		return (str == null || "".equals(str.trim())) ? false : true;
	}
	
	
}
